Skip to content

Instantly share code, notes, and snippets.

@mildsunrise
mildsunrise / hetzner-storage-box-auth.md
Last active December 30, 2025 16:02
Explanation of how SSH keys work in Hetzner storage boxes

Making Hetzner Storage Box authentication make sense

The documentation for this is pretty terrible and we had to figure this out by trial and error.

The storage box has a password, which is secret and random if not provided. It can be reset to an arbitrary one in the console ("Reset password" in the dropdown menu). Cannot be disabled. It's the only way to use WebDAV and SMB. Always accepted by SSH (and thus SFTP) on either port. It is the only way to recover a storage container you have locked yourself out of after losing SSH keys.

The SSH server on port 22 rejects shell, but it allows spawning the SFTP backend. Requests for any other command or subsystem seem to fail, so it seems to be made specifically for SFTP use.

The SSH server on port 23 offers a limited shell (rsh) with rsync, restic and a few other whitelisted commands. No redirections, pipes or other common shell features you'd expect. (dd is whitelisted, so yo

@yrashk
yrashk / inferal-workspace-architecture.md
Last active December 30, 2025 15:59
Inferal Workspace Architecture

Inferal Workspace Architecture: How We Work at Inferal

Your org's brain that AI can use

This is not our product. This document describes our internal operating environment - how we run the company. We share it to show the environment you'd join and demonstrate our philosophy in action. For what we're building, see What We're Building below.

This document describes the conceptual architecture of our company workspace - a text-based, version-controlled knowledge and operations hub designed to replace tools like Notion and Webflow while being natively accessible to AI assistants.

Why We Built This

@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active December 30, 2025 15:58
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!

@SuggonM
SuggonM / adb-5555.sh
Last active December 30, 2025 15:57
Restart wireless debugging (ADB) in port 5555 with Termux (no root)
#!/data/data/com.termux/files/usr/bin/bash
termux-notification --id 1 -t "Scanning for ADB port..."
adb_port=$(nmap -sT -p30000-50000 --open localhost | grep -m1 -oP "^\d+")
if [[ -z $adb_port ]]; then
termux-notification --id 1 -t "No debug port detected" -c "Tap to rescan." --action "$(realpath $0)"
exit
fi
termux-notification --id 1 -t "ADB port detected: $adb_port. Restarting ADB..."
@PlugFox
PlugFox / app_navigator.dart
Last active December 30, 2025 15:53
A simple declarative navigation system for Flutter.
import 'dart:collection';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'pages.dart';
export 'pages.dart';
// --- Navigator --- //
@promto-c
promto-c / General-Web-App-GitHub-Pages-Deployment-Guide.md
Created December 28, 2023 16:59
Comprehensive Guides for Deploying React, Node.js, and General Web Applications on GitHub Pages

Deploying a General Web App (HTML, CSS, JS) on GitHub Pages

A step-by-step guide to deploying web applications (using HTML, CSS, JavaScript) on GitHub Pages, categorized into three main sections for ease of understanding and implementation.

Preparing Your Web Application

  1. Create Your Web Application

    • Prepare your web application with HTML, CSS, and JavaScript files. Ensure the entry point of your app is an index.html file.
  2. Organize Your Application

@MarceloCajueiro
MarceloCajueiro / Ruby 2.5 on M1-M2 macs.md
Last active December 30, 2025 15:52
Installing Ruby 2.5.X on Mac M1/M2 Without Rosetta

Ruby 2.5.9 is an old version that does not officially support Apple Silicon (ARM architecture). Additionally, it depends on OpenSSL 1.1, which has been disabled in Homebrew since October 2024. This means that installing Ruby 2.5.9 on a Mac M1/M2 requires a manual installation of OpenSSL 1.1, since it’s no longer available via Homebrew.

This guide will walk you through installing Ruby 2.5.9 on an Apple Silicon Mac without using Rosetta, covering OpenSSL 1.1 installation, Ruby installation using asdf, and general compatibility notes.


Why OpenSSL 1.1?

Ruby 2.5.9 requires OpenSSL 1.1, but Homebrew has disabled it due to security concerns. Since newer OpenSSL versions (such as 3.x) are not compatible with Ruby 2.5.9, we must manually download, compile, and install OpenSSL 1.1.


Im aaaaa
@uIvPuGpT
uIvPuGpT / car.gif
Last active December 30, 2025 15:52
car.gif
@alirobe
alirobe / reclaimWindows10.ps1
Last active December 30, 2025 15:48
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security